package com.gxc.service.user.entity;

import com.gxc.service.common.model.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * t_user.
 *
 * @author GongXincheng
 * @date 2019-10-10 13:49:57
 */
@Data
@Entity
@Table(name = "t_user")
@EqualsAndHashCode(callSuper = true)
public class UserEntity extends BaseEntity {

    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;

    /**
     * 密码
     */
    @Column(name = "password")
    private String password;

    @Column(name = "age")
    private Integer age;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 状态：0:未激活, 1:正常, 2:冻结, 3:已删除
     */
    @Column(name = "status")
    private Integer status;

}
